<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>

<script>
	$(document).ready(function(){
		$("#content").height($(window).height()-200);
		$(window).resize(function(){
			if ($(window).height() > 400)
				$("#content").height($(window).height()-200);
		});

		$("#content").niceScroll({touchbehavior: true});

		$('.photo:not(:last)').css({'border-right':'2px solid black'});

		$("#content").mousewheel(function(event, delta) {
			this.scrollLeft -= (delta * 60);
			event.preventDefault();
		});
	});
</script>

<?php foreach($images as $key=>$cat):
	$images_list = $cat['image'];
	foreach($images_list as $img):
		$path = '/photos/'.$key.'/'.$img;
		echo CHtml::image(Yii::app()->getBaseUrl(true).$path, '', array('class'=>'photo'));
	endforeach;
endforeach;?>